#!/usr/bin/python

a,b,c = input("please input three number:").split()
a = int(a)
b = int(b)
c = int(c)
d = [a,b,c]

def fun1():
    if a > b:
        if a > c:
            if b > c:
                print("%d > %d > %d"%(a,b,c))
            else:
                print("%d > %d > %d"%(a,c,b))
        else: 
            print("%d > %d > %d"%(c,a,b))
    else:
        if b > c:
            if a > c:
                print("%d > %d > %d"%(b,a,c))
            else:
                print("%d > %d > %d"%(b,c,a))
        else:       
            print("%d > %d > %d"%(c,b,a))

def fun2():
    d.sort()
    f = [i for i in d]
    print("%d > %d > %d"%(f[2],f[1],f[0]))
    

fun1()
print("*"*10)
fun2()
